package com.qzdsoft.erpcloud.mapper.com;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.qzdsoft.erpcloud.domain.com.SupplierCustomer;
import com.qzdsoft.erpcloud.util.MyMapper;
import com.qzdsoft.erpcloud.vo.com.SupplierCustomerInfo;
import com.qzdsoft.vo.TypeInfo;

public interface SupplierCustomerMapper extends MyMapper<SupplierCustomer>
{

    List<SupplierCustomer> selectByName(@Param("companyId") String companyId,
            @Param("type") String type, @Param("name") String name);

    /**
     * 税率信息查询
     * @param companyid
     * @param customerSupplierid
     * @return
     */
    TypeInfo selectTaxInfo(@Param("companyid") Integer companyid,
            @Param("customerSupplierid") Integer customerSupplierid);


    List<SupplierCustomerInfo> selectData(@Param("companyId") Integer companyId,
            @Param("name") String name,@Param("type")Integer type);

    List<SupplierCustomer> findAllSupplier();
    /**
     * 根据id查询供应商客户
     * @param id
     * @return
     */
    SupplierCustomerInfo selectById(@Param("id")Integer id);
}